package recursion;

public class MaxDivisor {
    static int gys(int m, int n) {
        if (n == 0) return m;
        return gys(n, m % n);
    }

    public static void main(String[] args) {
        System.out.println(gys(6, 12));

    }
}
